cmake_minimum_required(VERSION 2.6)
SET(PROJECT_NAME client)
PROJECT(${PROJECT_NAME})
AUX_SOURCE_DIRECTORY(./src SRC_LIST)
INCLUDE_DIRECTORIES(
        /usr/local/include
        #/usr/local/include/libbson-1.0
        #/usr/local/include/libmongoc-1.0
)
LINK_DIRECTORIES(
        /usr/local/lib
)
ADD_DEFINITIONS( -g -Wall )
ADD_EXECUTABLE(${PROJECT_NAME} ${SRC_LIST})
#TARGET_LINK_LIBRARIES(${PROJECT_NAME} event eredis pthread m mongoc-1.0 bson-1.0)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} pthread)